package edu.zcmu.seckill.service.impl;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.zcmu.seckill.entity.Policy;
import edu.zcmu.seckill.mapper.PolicyMapper;
import edu.zcmu.seckill.service.PolicyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 唐诗
 * @since 2022-02-17
 */
@Service
public class PolicyServiceImpl extends ServiceImpl<PolicyMapper, Policy> implements PolicyService {

    @Override
    public Policy getUserPolicyById(Integer id) {
        Policy policy = baseMapper.selectById(id);
        return policy;
    }
}
